/*
 * @Author: wuqingchun
 * @Date: 2024-01-09 13:39:30
 * @Description: 
 * @LastEditors: wuqingchun
 * @LastEditTime: 2024-01-10 16:23:03
 */
#ifndef __FTPC_EVENT_H__
#define __FTPC_EVENT_H__

// 客户端支持最多文件描述符个数
#define FTPC_EVENT_FD_MAX       8

// 事件类型定义
#define FTPC_EVENT_IN     0x1
#define FTPC_EVENT_OUT    0x2

typedef struct
{
    int iFd;
    unsigned int uiEvents;
}FTPC_EVENT_DATA_S;

typedef struct 
{
    FTPC_EVENT_DATA_S astData[FTPC_EVENT_FD_MAX];
    unsigned int uiCount;
}FTPC_EVENT_S;

void FTPC_event_Init(void);
int FTPC_event_AddFd(int iFd, unsigned int uiEvents);
void FTPC_event_DeleteFd(int iFd);

#endif //__FTPC_EVENT_H__